#ifndef _IM_SERVER_REFRESH_SESSION_TASK_
#define _IM_SERVER_REFRESH_SESSION_TASK_

#include <string>
#include "rpc_thread_manager.h"

namespace imserver {

using apache::thrift::concurrency::Runnable;

class UpdateSessionTask : public Runnable {
 public:
  UpdateSessionTask(int64_t uid, const std::string & session, bool online) 
      : uid_(uid), session_(session), online_(online) {}
  virtual void run();
 private:
  int64_t uid_;
  std::string session_;
  bool online_;
};

}

#endif // _IM_SERVER_REFRESH_SESSION_TASK_

